Skip to content

Conversation

@oliverabrahams
Copy link
Contributor

What does this change?

Adds a new PrimaryHeadingText to the Product Element and fills it in from the primaryHeadingHtml in the enhancer.

Why?

This will be used for the carousel cards and the horizontal stacked cards.
As it is used in more than one place and to keep the transformation logic away from the components I have added removed the HTML and trailing : from the PrimaryHeadingHTML in the product element enhancer.

@github-actions
Copy link

github-actions bot commented Jan 6, 2026

Hello 👋! When you're ready to run Chromatic, please apply the run_chromatic label to this PR.

You will need to reapply the label each time you want to run Chromatic.

Click here to see the Chromatic project.

@oliverabrahams oliverabrahams changed the title Add new property to enhance Product Element Add primary heading text to product element Jan 6, 2026
@oliverabrahams oliverabrahams added the run_chromatic Runs chromatic when label is applied label Jan 6, 2026
@github-actions github-actions bot removed the run_chromatic Runs chromatic when label is applied label Jan 6, 2026
Copy link
Contributor

@emma-imber emma-imber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, will definitely be useful for us in future!

@oliverabrahams oliverabrahams merged commit 5fe28ba into main Jan 7, 2026
25 checks passed
@oliverabrahams oliverabrahams deleted the oa/remove-html-from-primary-heading branch January 7, 2026 11:18
@gu-prout
Copy link

gu-prout bot commented Jan 7, 2026

Seen on PROD (merged by @oliverabrahams 7 minutes and 45 seconds ago) Please check your changes!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants